/*
 * @Author: Grant
 * @Date: 2020-12-26 20:28:59
 * @LastEditTime: 2020-12-27 14:44:03
 * @LastEditors: Grant
 * @FilePath: \nest-crud-basic\src\app.module.ts
 */
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsersModule } from './users/users.module';
import { TypegooseModule } from 'nestjs-typegoose';

@Module({
  imports: [
    TypegooseModule.forRoot(`mongodb://localhost:27017/nest-users`, {
      useNewUrlParser: true,
      useUnifiedTopology: true,
      useFindAndModify: false,
      useCreateIndex: true,
    }),
    UsersModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
